<%--
功能：获取推荐类型
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag import="java.util.List" %>
<%@ tag import="java.util.ArrayList" %>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="org.apache.commons.lang.ArrayUtils" %>
<%@ tag import="org.apache.commons.lang.StringUtils" %>
<%@ tag import="com.probiz.estore.common.model.sales.RecommendedType" %>
<%@ tag import="com.probiz.estore.sales.service.RecommendedTypeManager" %>

<%@ attribute name="recommendedTypeName" type="java.lang.String" required="true" description="推荐类型的名称，如hot_sell,new_arrival等等" %>
<%@ attribute name="returnRecommendedTypeName" type="java.lang.String" required="true" description="要返回的推荐类型实体名称" %>

<%

	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	RecommendedTypeManager recommendedTypeManager = (RecommendedTypeManager) ctx.getBean("recommendedTypeManager");
	RecommendedType recommendedType = recommendedTypeManager.getRecommendedTypeByName(recommendedTypeName);
	request.setAttribute(returnRecommendedTypeName,recommendedType);
%>
<jsp:doBody />
